<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>购物车 - 甜品店</title>
    <link href="css/tailwind.min.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">
</head>
<body>
    <!-- 导航栏 -->
    <nav class="bg-transparent fixed w-full z-50">
        <div class="max-w-7xl mx-auto px-4">
            <div class="flex justify-between items-center h-16">
                <!-- 左侧Logo -->
                <div class="flex-shrink-0">
                    <a href="./index.html" class="flex items-center">
                        <img src="cake/logo.jpeg" alt="Logo" class="h-16 w-16 object-contain">
                    </a>
                </div>
                
                <!-- 中间导航链接 -->
                <div class="flex-1 flex justify-center space-x-12">
                    <a href="./index.html" class="text-sm text-gray-600 hover:text-[#B3927F]">首页</a>
                    <a href="./products.html" class="text-sm text-gray-600 hover:text-[#B3927F]">产品系列</a>
                    <a href="./about.html" class="text-sm text-gray-600 hover:text-[#B3927F]">品牌故事</a>
                    <a href="./contact.html" class="text-sm text-gray-600 hover:text-[#B3927F]">联系我们</a>
                </div>
                
                <!-- 右侧功能图标 -->
                <div class="flex items-center space-x-6">
                    <img src="cake/个人.png" alt="个人" class="h-6 w-6 cursor-pointer">
                    <div class="relative">
                        <img src="cake/消息.png" alt="消息" class="h-6 w-6 cursor-pointer">
                        <span class="absolute -top-2 -right-2 bg-[#B3927F] text-white text-xs rounded-full w-4 h-4 flex items-center justify-center">0</span>
                    </div>
                    <img src="cake/搜索.png" alt="搜索" class="h-6 w-6 cursor-pointer">
                </div>
            </div>
        </div>
    </nav>

    <!-- 购物车内容 -->
    <div class="container mx-auto px-4 py-8">
        <h1 class="text-2xl font-bold text-[#B3927F] mb-8">购物车</h1>
        <div id="cart-items" class="space-y-4">
            <!-- 购物车项目将通过 JavaScript 动态加载 -->
        </div>
        <div class="mt-8 flex justify-between items-center">
            <div class="text-xl font-bold text-[#B3927F]">
                总计: <span id="cart-total">¥0.00</span>
            </div>
            <button 
                onclick="checkout()"
                class="checkout-btn w-full text-white py-4 rounded-lg font-medium text-lg relative"
            >
                <span class="relative z-10">
                    立即结算 
                </span>
            </button>
        </div>
    </div>

    <!-- 页脚 -->
    <footer class="bg-[#F5F5F5] text-gray-600">
        <!-- 与 index.html 相同的页脚内容 -->
    </footer>

    <script src="js/main.js"></script>
    <script src="js/cart.js"></script>
</body>
</html> 